<!DOCTYPE html>
<html lang="en">

  <head>
  	{% block head %}
    <meta charset="utf-8">
  	<meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="/static/bootstrap-3.0.0/assets/ico/favicon.png">

    <title>Entrenate.com - Monitorea tu desempeño y relacionarte con otros. Inspirarse, desafiate.</title>

    <!-- Bootstrap core CSS -->
    <link href="/static/bootstrap-3.0.0/dist/css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    
    {% endblock %}
  </head>

  <body style="">
	{% block navbar %}
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href={{ url_for('index') }}>Entrenate</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href={{ url_for('index') }}>Home</a></li>
            <li><a href="#about">Sobre nosotros</a></li>
            <li><a href="#contact">Contacto</a></li>
          </ul>
          {% block navbar_right %}
	          <form class="navbar-form navbar-right">
	          
	          	{% if session.get('logged_in') %}
	          		<a class="btn white" href="dashboard">{{ g.user.apodo }}</a>
	            	<a class="btn btn-warning" href="/logout">Log Out</a>
	            {% else %}
	            	<a class="btn btn-success" href="/login">Sign in</a>
				{% endif %}
	            
	          </form>
          {% endblock %}
        </div><!--/.navbar-collapse -->
      </div>
    </div>
	{% endblock %}
	
	<div class="container page">
        <div class="content">
          {% block content %}
          {% endblock %}
        </div>

      	<hr>
      
        {% block footer %}
        <footer>
		  <p>&copy; Entrenate.com 2014</p>
		</footer>
        {% endblock %}

    </div>



	<!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/static/bootstrap-3.0.0/assets/js/jquery.js"></script>
    <script src="/static/bootstrap-3.0.0/dist/js/bootstrap.min.js"></script>
		    
    {% block js_footer %}
    {% endblock %}
  </body>
</html>
